/**
 * 
 */
package ar.utn.frgp.banco.exceptions;


/**
 * @author PUSDERKIS
 *
 */
public class PersonalisedException extends Exception {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4394557386092884618L;
	
	private String error;
	
	
	
	public PersonalisedException(String error) {
		super(error);
		this.error = error;
		
	}

	
	@SuppressWarnings("unused")
	private PersonalisedException() {
		super();
	}
	


	public PersonalisedException(String message, Throwable cause) {
		super(message, cause);
		this.error = message;
	}



	@SuppressWarnings("unused")
	private PersonalisedException(Throwable cause) {
		super(cause);
	}



	/**
	 * @return the error
	 */
	public String getError() {
		return error;
	}


	/**
	 * @param error the error to set
	 */
	public void setError(String error) {
		this.error = error;
	}
	
	

}
